/** \file Bend.h
    \author belot.nicolas
    A bend without release
*/

#ifndef BEND_H 
#define BEND_H 1

#include "PlayingEffect.h"
#include "Converter.h"

namespace libtrckr {

class Bend : public PlayingEffect {
	/** \class libtrckr::Bend
	\brief A bend without release */
	public :
		/** Constructor */
		Bend();
		/** Copy Constructor */
		Bend(const Bend&);
		/** Destructor */
		~Bend();
		
		/** Tune the Bend 
		\param conf \li \c 0 ratio \li \c 1 duration
		*/
		void Tune(DynArray<double>);

		Buffer& apply(Buffer&,int*);

	private:
		Converter c;
 		double duration, speed, elapsed,ratio;
};

}
#endif

